public class ClientClass {
    public static void main(String[] args) {
        // 初始化原型注册表
        pro.PrototypeRegistry.registerPrototype("A", new Apple());
        pro.PrototypeRegistry.registerPrototype("B", new Banana());

        // 原型模式创建对象
        PrototypeFruit clonedApple = pro.PrototypeRegistry.getPrototype("A");
        clonedApple.eat();  // 输出：eat Apple

        // 工厂模式与原型模式共存
        Factory factory = new Factory();
        Fruit factoryFruit = factory.CreateFruit("B");
        factoryFruit.eat(); // 输出：eat Banana
    }
}